import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/Welcome",
  },

  {
    path: "/Welcome",
    name: "welcome",
    component: () => import("../views/Welcome.vue"),
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("../views/Home.vue"),
  },
  // 综合态势
  {
    path: "/Zhts",
    name: "Zhts",
    component: () => import("../views/Zhts.vue"),
  },
  // 综合安防
  {
    path: "/Zhaf",
    name: "Zhaf",
    component: () => import("../views/Zhaf.vue"),
  },
  // 资产管理
  {
    path: "/Zcgl",
    name: "Zcgl",
    component: () => import("../views/Zcgl.vue"),
  },
  // 能耗管理
  {
    path: "/Nhgl",
    name: "Nhgl",
    component: () => import("../views/Nhgl.vue"),
  },
  // 环境监测
  {
    path: "/Hjjc",
    name: "Hjjc",
    component: () => import("../views/Hjjc.vue"),
  },

  // {
  //   path: "/about",
  //   name: "About",
  //   component: () =>
  //     import(/* webpackChunkName: "about" */ "../views/About.vue"),
  // },
];

const router = new VueRouter({
  routes,
});

export default router;
